package bb.lanxing.lib.kt

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.cancel
import java.io.Closeable
import kotlin.coroutines.CoroutineContext

class SafeCoroutineScope(override val coroutineContext: CoroutineContext) : CoroutineScope,
    Closeable {
    override fun close() {
        cancel()
    }
}